JBoss.orgCommunity Documentation

Chapter 3. Installation and Running

3.1. Installing
3.1.1. Binary
3.2. Installing JBoss Communications SS7 Service Binary
3.3. Running JBoss Communications SS7 Service
3.3.1. Starting
3.3.2. Stopping
3.4. Configuring JBoss Communications SS7 Service
3.4.1. Configuring M3UA
3.4.2. Configuring dialogic
3.4.3. Configuring ShellExecutor
3.4.4. Configuring SCCP
3.4.5. Configuring SS7Service
3.5. Setup from source
3.5.1. Release Source Code Building
3.5.2. Development Trunk Source Building

JBoss Communications SS7 stack at its core requires only Java if you are using only M3UA. However if you plan to use dahdi or dialogic SS7 hardware, respective SS7 cards needs to be installed on the server along with native libraries.

A simple way to get started is to download and install binary. This will provide you with all the dependencies you need to get going. You can obtain binary release from NOT AVAILABLE

The JBoss Communications SS7 Stack binary is broken down into a few modules.

The following is a description of the important services and libraries that make up JBoss Communications SS7 Stack

Binary release has following layout:

The upper layers of Mobicents SS7 viz., TCAP, MAP depends on JBoss Communications SS7 Service and JBoss Communications SS7 Service must be installed before upper layers can be used. The JBoss Communications SS7 Service binary requires that you have JBoss Application Server installed and JBOSS_HOME system property set. To know further details on setting JBOSS_HOME look Appendix B, Setting the JBOSS_HOME Environment Variable

Once JBOSS_HOME is properly set, use ant to deploy the mobicents-ss7-service, shell scripts and shell library.

Important

Ant 1.6 (or higher) is used to install the binary. Instructions for using Ant, including install, can be found at http://ant.apache.org/

[usr]$ cd ss7-1.0.0.CR2/ss7
[usr]$ ant deploy
			

To undeploy these services

[usr]$ cd ss7-1.0.0.CR2/ss7
[usr]$ ant undeploy
			

While above steps will deploy the necessary ss7 service and shell components, the java.library.path should be set to point the directory containing native component or should be copied to JBoss native library path manually. This step is only required if you are using the SS7 board on server.

Starting or stopping JBoss Communications SS7 Service is no different than starting or stopping JBoss Application Server

Once installed, you can run server by executing the run.sh (Unix) or run.bat (Microsoft Windows) startup scripts in the <install_directory>/bin directory (on Unix or Windows). If the service started properly you should see following lines in the Unix terminal or Command Prompt depending on your environment:

23:22:26,079 INFO  [LinksetManager] SS7 configuration file path /home/abhayani/workarea/mobicents/jboss-5.1.0.GA/server/default/data/linksetmanager.xml
23:22:26,141 INFO  [LinksetManager] Started LinksetManager
23:22:26,199 INFO  [SS7Service] Starting SCCP stack...
23:22:26,229 INFO  [SccpStackImpl] Starting ...
23:22:26,230 INFO  [RouterImpl] SCCP Router configuration file: /home/abhayani/workarea/mobicents/jboss-5.1.0.GA/server/default/deploy/mobicents-ss7-service/sccp-routing.txt
23:22:26,261 INFO  [SS7Service] SCCP stack Started. SccpProvider bound to java:/mobicents/ss7/sccp
23:22:26,261 INFO  [ShellExecutor] Starting SS7 management shell environment
23:22:26,270 INFO  [ShellExecutor] ShellExecutor listening at /127.0.0.1:3435
23:22:26,270 INFO  [SS7Service] [[[[[[[[[ Mobicents SS7 service started ]]]]]]]]]

				

If you have started ss7-1.0.0.CR2 for the first time, SS7 is not configured. You need to use Shell Client to connect to ss7-1.0.0.CR2 as defined in Chapter 5, Shell Command Line . With CLI you can configure how service interacts with SS7 network, that is you configure either installed SS7 card and its native library\ , or M3UA layer.

Once the configured, the state and configuration of SS7 is persisted which stands server re-start.

Configuration is done through an XML descriptor named jboss-beans.xml and is located at $JBOSS_HOME/server/profile_name/deploy/mobicents-ss7-service/META-INF, where profile_name is the server profile name.

The JBoss Communications SS7 Layer 4 (SCCP, ISUP) leverages either of following MTP layers to exchange signalling messages with remote signalling points

The ss7 service will be configured with either of these services.

M3UAManagement is only needed if the underlying SS7 service will leverage M3UA. M3UAManagement configuration is further explained in Section 6.2, “M3UAManagement”



    <!-- ==================================================================== -->
    <!-- M3UA -->
    <!-- M3UAManagement is managing the m3ua side commands -->
    <!-- ==================================================================== -->
    <bean name="Mtp3UserPart" class="org.mobicents.protocols.ss7.m3ua.impl.M3UAManagement">
        <constructor>
            <parameter>Mtp3UserPart</parameter>
        </constructor>
        <property name="persistDir">${jboss.server.data.dir}</property>
        <property name="transportManagement">
            <inject bean="SCTPManagement" />
        </property>
    </bean>

    <bean name="M3UAShellExecutor"
        class="org.mobicents.protocols.ss7.m3ua.impl.oam.M3UAShellExecutor">
        <property name="m3uaManagement">
            <inject bean="Mtp3UserPart" />
        </property>
        <property name="sctpManagement">
            <inject bean="SCTPManagement" />
        </property>
    </bean>
                        

As name suggests SccpStack initiates the SCCP stack routines. Stack has following properties:

SccpExecutor accepts sccp commands and executes necessary operations

SccpProvider is bound to JNDI by SS7 Service and is used by upper layers


    <!-- ==================================================================== -->
    <!-- SCCP Router Service -->
    <!-- ==================================================================== -->
    <!--Define Router for SCCP -->
    <bean name="Router" class="org.mobicents.protocols.ss7.sccp.impl.router.Router">
        <property name="persistDir">${jboss.server.data.dir}</property>
    </bean>

    <bean name="SccpResource" class="org.mobicents.protocols.ss7.sccp.impl.SccpResource">
        <property name="persistDir">${jboss.server.data.dir}</property>
    </bean>

    <bean name="SccpExecutor"
        class="org.mobicents.protocols.ss7.sccp.impl.oam.SccpExecutor">
        <property name="router">
            <inject bean="Router" />
        </property>
        <property name="sccpResource">
            <inject bean="SccpResource" />
        </property>
    </bean>

    <bean name="SccpStack" class="org.mobicents.protocols.ss7.sccp.impl.SccpStackImpl">
        <property name="localSpc">2</property>
        <property name="ni">2</property>
        <property name="router">
            <inject bean="Router" />
        </property>
        <property name="sccpResource">
            <inject bean="SccpResource" />
        </property>
        <property name="mtp3UserPart">
            <inject bean="Mtp3UserPart" />
        </property>
    </bean>

    <bean name="SccpProvider"
        class="org.mobicents.protocols.ss7.sccp.impl.SccpProviderImpl">
        <constructor factoryMethod="getSccpProvider">
            <factory bean="SccpStack" />
        </constructor>
    </bean>

SS7Service acts as core engine binding all the components together. To get holistic view of SS7 Service look at Section 2.2, “SS7 Service”


    <!-- ==================================================================== -->
    <!-- Mobicents SS7 Service -->
    <!-- ==================================================================== -->
    <bean name="SS7Service" class="org.mobicents.ss7.SS7Service">
        <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name=
              "org.mobicents.ss7:service=SS7Service",
              exposedInterface=org.mobicents.ss7.SS7ServiceMBean.class,
              registerDirectly=true)</annotation>
        <property name="jndiName">java:/mobicents/ss7/sccp</property>
        <property name="stack">
            <inject bean="SccpProvider" />
        </property>
    </bean>

SS7 service binds SccpProvider to JNDI java:/mobicents/ss7/sccp. The JNDI name can be configured to any valid JNDI name specific to your application.

JBoss Communications SS7 Stack is an open source project, instructions for building from source are part of the manual! Building from source means you can stay on top with the latest features. Whilst aspects of JBoss Communications SS7 Stack are quite complicated, you may find ways to become contributors.

JBoss Communications SS7 Stack works with JDK1.5 and above (If using M3UA, JDK1.7 and above ). you will also need to have the following tools installed. Minimum requirement version numbers provided.

  1. Downloading the source code

    Use SVN to checkout a specific release source, the base URL is ?, then add the specific release version, lets consider 1.0.0.CR2.

    [usr]$ svn co ?/ss7-1.0.0.CR2
  2. Building the source code

    Now that we have the source the next step is to build and install the source. JBoss Communications SS7 Stack uses Maven 2 to build the system. There are three profiles. Default one builds only java source. The other two profiles available "dahdilinux" and "dialogiclinux" additionaly compile native modules.

    Use "dahdilinux" profile if linux server on which this code is built already has dahdi module installed. Make sure you pass "include.zap" system property pointing to correct directory where dahdi is installed

    [usr]$ cd ss7-1.0.0.CR2
    [usr]$ mvn install -Pdahdilinux -Dinclude.zap=/usr/include/dahdi
    				    

    Use "dialogiclinux" profile if linux server on which this code is built already has dialogic module installed. Make sure you pass "include.dialogic" and "include.dialogic.gctlib" system property pointing to correct directory where dialogic libraries are installed. include.dialogic.gctlib points to directory where gctload is present (generally /opt/dpklnx for linux OS)

    [usr]$ cd ss7-1.0.0.CR2
    [usr]$ mvn install -Pdialogclinux -Dinclude.dialogic=/opt/dpklnx/INC -Dinclude.dialogic.gctlib=/opt/dpklnx
    				    

    To build JBoss Communications SS7 Stack without building any native libraries use

    [usr]$ cd ss7-1.0.0.CR2
    [usr]$ mvn install 
    				    

    Use Ant to build the binary .

    [usr]$ cd ss7-1.0.0.CR2/release
    [usr]$ ant